import java.awt.Image;

import javax.swing.ImageIcon;


public class Player
{
	int x, dx, y, dy;
	Image img;
	double direction;
	
	public Player()
	{
		img = new ImageIcon("images/player.gif").getImage();
		x = 0;
		y = 0;
	}
	
	public void move()
	{
		x = x + dx;
		y = y + dy;
	}
	
	public int getX()
	{
		return x;
	}
	public int getY()
	{
		return y;
	}
	public Image getImage()
	{
		return img;
	}
	
	public void setXVelocity(int dx)
	{
		this.dx = dx;
	}
	public void setYVelocity(int dy)
	{
		this.dy = dy;
	}
	
	public void setDirection(double xdir, double ydir)
	{
		direction = Math.atan2(x-xdir, y-ydir);
	}
	public double getDirection()
	{
		return direction;
	}
}
